<ui:composition template="/WEB-INF/templates/main-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">


	<ui:define name="sidebar">
	<ui:include src="/WEB-INF/templates/public-sidebar.xhtml" />
	</ui:define>
	<ui:define name="content">
	    <h:panelGroup style="width:100%;text-align:left;">
		 <h:outputText value="View and Print project perdiem expenses" styleClass="outputTextTitle"/>
		</h:panelGroup>
		<h:form>
	    <p:growl id="growl"></p:growl>
	    <h:panelGrid id="printSource">
	   
		<br />
	          <h:outputLabel value="Employee Details"
						styleClass="outputTextSubTitle" />
	  
              <h:panelGrid columns="9" 
						columnClasses="employeeDetail6GridsCell1, gridCellMiddleLeftAligned, employeeDetail6GridsCell2, employeeDetail6GridsCell1, gridCellMiddleLeftAligned, employeeDetail6GridsCell2, employeeDetail6GridsCell1, gridCellMiddleLeftAligned"
						style="width: 100%;">
				
				        <h:outputLabel value="Perdiem Request ID" />
						<h:outputLabel value=":" />
						<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.projectPerdiemCode}" styleClass="wamOutputLebel" style="font-weight: bold; color: #7892B7"/>
						
						<h:outputLabel value="Requested Date"/>
					    <h:outputText value=":" />
					    <h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.requestDate}"  readonly="true">
					    <f:convertDateTime pattern="dd/MM/yyyy"/>
					    </h:outputLabel> 

						

						<h:outputLabel value="#{msg['employeename.label']}" />
						<h:outputLabel value=":" />						
						<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.employee.firstName} #{viewProjectPerdiemBean.projectPerdiem.employee.lastName}"
							styleClass="wamOutputLebel" />

						<h:outputLabel value="#{msg['employeeid.label']}" />
						<h:outputLabel value=":" />
						<h:outputLabel
							value="#{viewProjectPerdiemBean.projectPerdiem.employee.employeeCode}"
							styleClass="wamOutputLebel" />

					
					<h:outputLabel value="#{msg['contactnumber.label']}"/>
                    <h:outputText value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.employee.telephone}" readonly="true" />
					
					<h:outputLabel value="#{msg['emergenceycontactnum.label']}"/>
					<h:outputText value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.employee.telephone}" />
					
					<h:outputLabel value="#{msg['dept.label']}" />
				    <h:outputLabel value=":" />
				    <h:outputLabel  styleClass="wamOutputLebel" value="#{viewProjectPerdiemBean.projectPerdiem.employee.moduleName}"/>
				    <h:outputLabel value="#{msg['designation.label']}" />
				    <h:outputLabel value=":" />
				    <h:outputLabel  styleClass="wamOutputLebel" value="#{viewProjectPerdiemBean.projectPerdiem.employee.designation}"/>
					
					<h:outputLabel value="#{msg['recommendedby.lable']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.employeeAndReporting.projectManager.firstName} #{viewProjectPerdiemBean.employeeAndReporting.projectManager.lastName}" readonly="true" />	
					<h:outputLabel value="#{msg['approvedby.lable']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.vicePresident.firstName}#{viewProjectPerdiemBean.vicePresident.lastName}" readonly="true" />
					
				
				</h:panelGrid>
				<p:spacer />
		      <h:outputLabel value="Project Assignment Details"
						styleClass="outputTextSubTitle" />
		    
	          <h:panelGrid columns="9" 
						columnClasses="employeeDetail6GridsCell1, gridCellMiddleLeftAligned, employeeDetail6GridsCell2, employeeDetail6GridsCell1, gridCellMiddleLeftAligned, employeeDetail6GridsCell2, employeeDetail6GridsCell1, gridCellMiddleLeftAligned"
						style="width: 100%;">
				
			
					<h:outputLabel value="#{msg['projectname.label']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.projectAssignment.project.projectName}" readonly="true" />					 	
					<h:outputLabel value="#{msg['clientaddress.label']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.projectAssignment.project.clientAddress}" readonly="true" />		
					
					
					
					<h:outputLabel value="#{msg['clientname.label']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectAssignment.project.client}" readonly="true"/>
					<h:outputLabel value="#{msg['clientlocation.label']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.projectAssignment.project.clientLocation}" readonly="true"/>
					
										
					<h:outputLabel value="#{msg['clientcontactperson.label']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectAssignment.project.contactPerson}" readonly="true" />
					<h:outputLabel value="#{msg['clientcontactnumber.lable']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.projectAssignment.project.contactNumber}" readonly="true" />
					
					<h:outputLabel value="#{msg['projectstratdate.label']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.projectAssignment.project.periodFrom}" readonly="true" >
					 <f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputLabel>
					<h:outputLabel value="#{msg['projectenddate.label']}"/>
					<h:outputLabel value=":" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiem.projectAssignment.project.periodTo}" readonly="true" >
					 <f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputLabel>
									
					
				
				</h:panelGrid>
				<p:spacer />
		     <h:outputLabel value="Allowance Details"
						styleClass="outputTextSubTitle" />
		    
		  
	         <h:panelGrid columns="3" 
						columnClasses="employeeDetail6GridsCell1, gridCellMiddleLeftAligned, employeeDetail6GridsCell2, employeeDetail6GridsCell1, gridCellMiddleLeftAligned, employeeDetail6GridsCell2, employeeDetail6GridsCell1, gridCellMiddleLeftAligned"
						style="">
				
			
				    <h:outputLabel value="#{msg['dailyallowance.lable']}"/>
					<h:outputLabel value="#{viewProjectPerdiemBean.projectAssignmentDetail.dailyAllowance}" readonly="true" >
					 
					</h:outputLabel>
					<h:outputLabel value="INR"/>
					
					<h:outputLabel value="#{msg['advanceamounttaken.lable']}"/>
					<h:outputLabel value="#{viewProjectPerdiemBean.projectAssignmentDetail.advanceAmount}" readonly="true" />
					<h:outputLabel value="INR"/>
					<h:outputLabel value="#{msg['roomrentadvance.lable']}"/>
					<h:outputLabel value="#{viewProjectPerdiemBean.projectAssignmentDetail.roomRentAdvance}" readonly="true" />
					<h:outputLabel value="INR"/>
					<h:outputLabel value="#{msg['roomrentpermonth.lable']}"/>
					<h:outputLabel value="#{viewProjectPerdiemBean.projectAssignmentDetail.roomRentPerMonth}" readonly="true" />
					<h:outputLabel value="INR"/>		 

				
				</h:panelGrid>
			
				
				
				 <p:spacer />
				 <h:outputLabel value="Perdiem Details"
						styleClass="outputTextSubTitle" />
				 
				<h:panelGrid columns="5" 
						columnClasses="grid96pxCellMiddleLeftAligned, gridCellMiddleLeftAligned, gridCellMiddleLeftAligned, grid96pxCellMiddleLeftAligned, gridCellMiddleLeftAligned, gridCellMiddleLeftAligned, grid96pxCellMiddleLeftAligned, gridCellMiddleLeftAligned, gridCellMiddleLeftAligned "
						style="width:400px;">  
					<h:outputLabel value="Discription" style="font-style:bold;"/>
					<h:outputLabel value="From Date"/>
					<h:outputLabel value="To Date"/>
					<h:outputLabel value="Amount"/>
					<h:inputHidden  />
					
					<h:outputLabel value="Room Rent"/>
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiemDetail.roomRentFrom}"  >
					 <f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputLabel>
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiemDetail.roomRentTo}"  >
					 <f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputLabel>
					<h:outputLabel  value="#{viewProjectPerdiemBean.projectPerdiemDetail.roomRentAmount}" />
					
					<h:inputHidden  />
					
					<h:outputLabel value="Per Diems"/>
					<h:outputLabel  value="#{viewProjectPerdiemBean.projectPerdiemDetail.perdiemFrom}" >
					  <f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputLabel>
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiemDetail.perdeimTo}" >
					  <f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputLabel>
					
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiemDetail.perdeimAmount}"/>
					
					
					<h:inputHidden  />
					
					<h:outputLabel value="Miscellaneous"/>
					<h:outputLabel  value="#{viewProjectPerdiemBean.projectPerdiemDetail.miscFrom}"  >
					 <f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputLabel>
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiemDetail.miscTo}"  >
					  <f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputLabel>
					<h:outputLabel  value="#{viewProjectPerdiemBean.projectPerdiemDetail.miscAmount}" />
					

					<h:inputHidden  />
					
					 <h:outputLabel value="Miscellaneous Remarks"/>
					 <h:outputLabel  value="#{viewProjectPerdiemBean.projectPerdiemDetail.miscRemarks}"></h:outputLabel>
					
				    <h:inputHidden />
					<h:inputHidden/>
					<h:inputHidden />
					
					
				
					
					<h:outputLabel value="Total Amount" />
					<h:outputLabel value="#{viewProjectPerdiemBean.projectPerdiemDetail.totalAmount}" />
					<h:inputHidden />
					<h:inputHidden/>
					<h:inputHidden />
					<h:inputHidden />
					<h:panelGroup style="margin-right:-250px;">
					 
					
			        </h:panelGroup>
			        	<h:inputHidden />
					<h:inputHidden/>
					<h:inputHidden />
			
					
				</h:panelGrid>
				
				
		
           </h:panelGrid>
           <p:commandButton value="Print" icon="ui-icon-print">
					  <p:printer target="printSource"></p:printer>
		   </p:commandButton>
		   <p:commandButton value="Back"   onclick="history.back();"/>
		</h:form>
	</ui:define>
</ui:composition>

